#include "types.h"
#include "error.h"

#define REG_GET_BITS(r, m, s)		(((r) & (m)) >> (s))
#define REG_SET_BITS(r, m, s, v)	(((r) & ~(m)) | (((v) << (s)) & (m)))
